﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Index : AdminBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void btnConfirmPackage_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Admin/ConfirmPackage.aspx");
    }
    protected void btnBranch_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Admin/Branch/ViewBrach.aspx");
    }
    protected void btnPackage_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Admin/Package/ListPackage.aspx");
    }
    protected void txtBarcode_TextChanged(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(txtBarcode.Text))
            Response.Redirect("~/Admin/Package/ViewPackage.aspx?barcode=" + txtBarcode.Text.Replace("+",""));
    }
    protected void btnCheck_Click(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(txtBarcode.Text))
            Response.Redirect("~/Admin/Package/ViewPackage.aspx?barcode=" + txtBarcode.Text.Replace("+", ""));
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Admin/CheckTransit.aspx");
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Admin/CompleteTransit.aspx");
    }
}